/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-10-29 08:59:17
 * @LastEditors: 朱江洲
 * @LastEditTime: 2021-10-29 16:09:32
 */
import request from "@/utils/request.js";
// 获取列表
export const getList = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/list`,
        params
    })
}

// 导出全部
export const exportAll = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/thirdArrange/exportAll`,
        params
    })
}

// 导出选中
export const exportChi = data => {
    return request({
        method: 'post',
        url: `/serviceProvide/thirdArrange/export`,
        data
    })
}
// 更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/thirdArrange/changeDirector`,
        params
    })
}

// 获取学员信息

export const getStudentByOrderNo = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getStudentByOrderNo`,
        params
    })
}

// 分配
export const distribution = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/thirdArrange/distribution`,
        params
    })
}
// 领取
export const receive = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/thirdArrange/receive`,
        params
    })
}
// 获取学校列表
export const getSchoolList = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getSchool`,
        params
    })
}
// 获取学校考试列表
export const getSchoolExam = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getSchoolExam`,
        params
    })
}

// 获取微信二维码
export const chatPay = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getWxQRCode`,
        params
    })
}
// 轮询微信支付状态
export const chatQuery = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getWxOrder`,
        params
    })
}
// 关闭微信支付
export const chatCancel = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/closeWxOrder`,
        params
    })
}

// 获取阿里二维码
export const aliPay = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getAliQRCode`,
        params
    })
}
// 轮询阿里支付状态
export const aliQuery = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/getAliOrder`,
        params
    })
}
// 关闭阿里支付
export const aliCancel = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/closeAliOrder`,
        params
    })
}
// 线下支付
export const offlinePay = data => {
    return request({
        method: 'post',
        url: `/serviceProvide/registerArrange/offlinePay`,
        data
    })
}
// 查询是否已经分配学校
export const checkDistribution = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/registerArrange/checkDistribution`,
        params
    })
}
